package com.tql.mall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: tyk
 * @Date: 2023/5/25 15:17
 * @Description:
 */
@Controller
public class AuthWebController {
    /**
     * 跳转到登录页面
     */
    @GetMapping("login.html")
    public String login(String originUrl, Model model) {
        model.addAttribute("originUrl", originUrl);
        return "login";
    }

    /**
     * 注册页
     */
    @GetMapping({"register.html"})
    public String register(Model model) {
        return "register";
    }
}
